Skip to content

feat: add mbedtls 3.6.1 descriptor#2

Merged
Sunrisepeak merged 1 commit intomainfrom
feat/add-mbedtls
May 9, 2026
Merged

feat: add mbedtls 3.6.1 descriptor#2
Sunrisepeak merged 1 commit intomainfrom
feat/add-mbedtls

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

xpkg V1 + mcpp Form B descriptor for mbedtls 3.6.1.

Built on mcpp 0.0.2's C-language compile rule (c_object):
all 108 of library/*.c compile via the gcc/clang sibling
driver at c11 and archive into a single libmbedtls.a
covering crypto + x509 + ssl. Same shape as what xmake's
add_packages("mbedtls") produces.

Glob-aware paths (*/library/*.c, */include, */library)
absorb the GitHub tarball's mbedtls-mbedtls-3.6.1/ wrap layer.

Verification

Smoke project depending on mbedtls = "3.6.1" builds, links
statically (musl), runs, and produces the FIPS 180-4 SHA-256
vector for "abc" correctly:

mbedtls version: Mbed TLS 3.6.1
sha256(abc) = ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Downstream

First consumer is mcpplibs/tinyhttps — parallel PR
(mcpplibs/tinyhttps#1)
adds an mcpp.toml that depends on this descriptor.

xpkg V1 + mcpp Form B descriptor for `mbedtls 3.6.1`. Targets the C
language compile rule introduced in mcpp 0.0.2: `library/*.c` (108
sources) compile via `c_object` (gcc/clang sibling driver, c11) and
archive into a single `libmbedtls.a` covering crypto + x509 + ssl —
matching what xmake's `add_packages("mbedtls")` produces.

Glob-aware paths (`*/library/*.c`, `*/include`, `*/library`) absorb
the GitHub tarball's `mbedtls-mbedtls-3.6.1/` wrap layer.

Verified locally: a smoke project depending on `mbedtls = "3.6.1"`
builds, links statically (musl), runs, and produces the FIPS 180-4
SHA-256 vector for "abc" correctly.

First downstream consumer is mcpplibs/tinyhttps (parallel PR adds an
`mcpp.toml` that depends on this descriptor).
@Sunrisepeak Sunrisepeak merged commit 71c9d36 into main May 9, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant